package org.xhystudy.rpc.registry;

/**
 * @description:
 * @Author: Xhy
 * @gitee: https://gitee.com/XhyQAQ
 * @copyright: B站: https://space.bilibili.com/152686439
 * @CreateTime: 2023-04-24 23:39
 */
public enum RegistryType {
    ZOOKEEPER,
    REDIS;

    public static RegistryType toRegistry(String registerType) {
        for (RegistryType value : values()) {
            if (value.toString().equals(registerType)) {
                return value;
            }
        }
        return null;
    }
}
